package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.BasicLogMapper;
import com.whq.entity.BasicLog;
import com.whq.service.BasicLogService;

@Service(value = "tcBasicLogService")
public class BasicLogServiceImpl implements BasicLogService {

    @Autowired
    private BasicLogMapper<BasicLog>tcBasicLogMapper;
    
    @Override
    public Integer insertSelective(BasicLog tcBasicLog) throws Exception {
           return this.tcBasicLogMapper.insertSelective(tcBasicLog);
        }

    @Override
    public Integer insertBatch(List<BasicLog> tcBasicLog) throws Exception {
           return this.tcBasicLogMapper.insertBatch(tcBasicLog) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tcBasicLogMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tcBasicLogMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(BasicLog tcBasicLog) {
           return this.tcBasicLogMapper.updateByPrimaryKeySelective(tcBasicLog);
    }

    @Override
    public BasicLog findById(Object id) {
           return (BasicLog) this.tcBasicLogMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<BasicLog> selectByCondition(BasicLog tcBasicLog) {
           return (List<BasicLog>) this.tcBasicLogMapper.selectByCondition(tcBasicLog);
    }

    @Override
    public Integer selectCountByCondition(BasicLog tcBasicLog) {
           return  this.tcBasicLogMapper.selectCountByCondition(tcBasicLog);
    }

}
